
package controller.net;

import model.AlbumModel;
import model.ArtistModel;
import model.GenreModel;
import model.TrackModel;
import model.Model;

public class ModelHolder {
    
    private AlbumModel albums = new AlbumModel();
    private ArtistModel artists = new ArtistModel();
    private GenreModel genres = new GenreModel();
    private TrackModel tracks = new TrackModel();
    
    public Model getModel(String modelType) {
        switch(modelType) {
            case "ALBUM":
                return albums;
            case "ARTIST":
                return artists;
            case "GENRE":
                return genres;
            case "TRACK":
                return tracks;
        }
        return null;
    }
}
